package com.ruoyi.test.web;

import com.ruoyi.test.serv.IWebsocketServ;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/hello/websocket-url")
public class WebSocketController {
    @Resource
    IWebsocketServ websocketServ;
    @GetMapping("/server")
    public String getWebSocketUrl() {
        return websocketServ.getWebsocketUrl();
    }
}
